package com.itheima.service;

import com.itheima.bean.DishFlavor;

import java.util.List;

public interface FlavorService {
    /**
     * 添加菜品口味
     * @param dishFlavor
     * @return
     */
    int add(DishFlavor dishFlavor);

    /**
     * 通过dish Id查找
     * @param dishId
     * @return
     */
    List<DishFlavor> findByDishId(Long dishId);

    /**
     * 修改菜品口味
     * @param dishFlavor
     * @return
     */
    int update(DishFlavor dishFlavor);

    /**
     * 通过dish Id 删除
     * @param dishId
     * @return
     */
    int deleteByDishId(Long dishId);
}
